package io.gitee.mojingjiao.day03;

public class DemoPhone {
    public static void main(String[] args) {
        Phone p = new Phone();
       p.getBrand();
       p.getPrice();
       p.call();
       p.sendMessage();
       p.playGame();



    }
}
    class Phone{
        private  String brand;
        private  int price;

        public Phone(){}
        public Phone(String brand, int price) {
            this.brand = brand;
            this.price = price;
        }

        public String getBrand() {
            return brand;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }

        public int getPrice() {
            return price;
        }
        public void setPrice(int price){
            this.price=price;
        }


        public void setbrand(String brand){
            this.brand=brand;
     }


      public void call(){
          System.out.println("正在使用价格为998元的小米品牌的手机打电话....");}
      public void sendMessage(){
              System.out.println("正在使用价格为998元的小米品牌的手机发短信....");
          }
       public void playGame(){
              System.out.println("正在使用价格为998元的小米品牌的手机玩游戏....");
          }


    }

